@model MVCCornucopia.Data.Employee
@using Links;
<h2>Create new Employee</h2>

@*    ------ For ColorPicker ----------*@
@section CSS
{
    <link href="@Url.Content("~/Scripts/Spinner/ui.spinner.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Scripts/ColorPicker/css/colorpicker.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Scripts/ColorPicker/css/layout.css")" rel="stylesheet" type="text/css" />
}
@section JavaScript 
{
    <script type="text/javascript" src="@Url.Content("~/Scripts/ColorPicker/js/colorpicker.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/Spinner/ui.spinner.js")"></script>
    <script src="@Url.Content("~/Scripts/EmployeeIndex.js")" type="text/javascript"></script>
    <script  type="text/javascript" src="@Url.Content("~/Scripts/html5FormSetup.js")"></script>
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

<script type="text/javascript">


    $(document).ready(function () {

        setupForm();
    });

</script>


@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Employee</legend>

		@Html.Partial("_CreateOrEdit", Model)

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>


